import request from '@/utils/request'

// 查询属性配置列表
export function listPropetty(query) {
  return request({
    url: '/system/one/propetty/list',
    method: 'get',
    params: query
  })
}

// 查询属性配置列表
export function listPagePropetty(query) {
  return request({
    url: '/system/one/propetty/listPage',
    method: 'get',
    params: query
  })
}
// 查询属性配置详细
export function getPropetty(id) {
  return request({
    url: '/system/one/propetty/' + id,
    method: 'get'
  })
}

// 新增属性配置
export function addPropetty(data) {
  return request({
    url: '/system/one/propetty',
    method: 'post',
    data: data
  })
}

// 修改属性配置
export function updatePropetty(data) {
  return request({
    url: '/system/one/propetty',
    method: 'put',
    data: data
  })
}

// 删除属性配置
export function delPropetty(id) {
  return request({
    url: '/system/one/propetty/' + id,
    method: 'delete'
  })
}
